package com.itheima.health.service;

import com.itheima.health.entity.PageResult;
import com.itheima.health.entity.QueryPageBean;
import com.itheima.health.pojo.Role;

import java.util.List;

public interface RoleService {

	List<Role> findAllRoles();

	PageResult findPage(QueryPageBean queryPageBean);

	void add(Integer[] menuIds, Integer[] permissionsIds, Role role);

	void delete(Integer id);

	Role findById(Integer id);

	List<Integer> findpermissionsIdsById(Integer id);

	void update(Integer[] permissionsIds, Integer[] menuIds, Role role);

	List<Integer> findMenuIdsById(Integer id);
}
